<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>利用Set去重</title>
		<script type="text/javascript">
			let arr = ['1','2','3','2','3'];
			let s = new Set();
			//遍历数组
			arr.forEach((value,index) => {
				s.add(value);
			})
			console.log(s);
			//讲set转换为数组
			let res = Array.from(s);
			console.log(res)
		</script>
	</head>
	<body>
	</body>
</html>
